package com;

public class UserServiceImpl implements  UserService {
    private UserDao userDao;
    public void save(User user){
        userDao.saveUser(user);
    }
    public void setUserDao(UserDao userDao){
        this.userDao=userDao;
    }
    private UserDao dao=new UserDaoImpl();
    public void save(User user){
        dao.save(user);
    }
}
